package top.yokey.shopnc.model;

import top.yokey.shopnc.base.BaseConstant;
import top.yokey.base.base.BaseHttpClient;
import top.yokey.base.base.BaseHttpListener;

@SuppressWarnings("ALL")
public class MemberSigninModel {

    private final String ACT = "member_signin";
    private static volatile MemberSigninModel instance;

    public static MemberSigninModel get() {
        if (instance == null) {
            synchronized (MemberSigninModel.class) {
                if (instance == null) {
                    instance = new MemberSigninModel();
                }
            }
        }
        return instance;
    }

    public void checkSignin(BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, "checksignin")
                .get(baseHttpListener);

    }

    public void signinAdd(BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, "signin_add")
                .get(baseHttpListener);

    }

    public void signinList(String page, BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, "signin_list")
                .add("page", BaseConstant.PAGE)
                .add("curpage", page)
                .get(baseHttpListener);

    }

}
